<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多样化布局的文章推荐</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 基础样式 */
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-heading {
            font-weight: 700;
            margin: 2.5rem 0 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #3b82f6;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-description {
            color: #64748b;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }
        
        /* 通用卡片样式 */
        .article-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .article-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
        }
        
        /* 作者信息样式 */
        .author-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 600;
            color: #1e293b;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .author-name:hover {
            color: #3b82f6;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .article-category {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            font-size: 0.75rem;
            border-radius: 4px;
            background-color: #eff6ff;
            color: #3b82f6;
            font-weight: 500;
        }
        
        /* 文章内容样式 */
        .article-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            transition: color 0.2s;
        }
        
        .article-title a {
            color: #1e293b;
            text-decoration: none;
        }
        
        .article-title a:hover {
            color: #3b82f6;
        }
        
        .article-excerpt {
            color: #64748b;
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }
        
        /* 图片样式 */
        .article-image {
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        }
        
        .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .article-card:hover .article-image img {
            transform: scale(1.03);
        }
        
        /* 交互区域样式 */
        .article-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .action-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .action-item:hover {
            color: #3b82f6;
        }
        
        .action-item.liked {
            color: #ef4444;
        }
        
        /* 布局1: 标准卡片布局 */
        .layout-standard .article-card {
            margin-bottom: 1.5rem;
        }
        
        .layout-standard .card-body {
            padding: 1.25rem;
        }
        
        .layout-standard .article-image {
            height: 200px;
        }
        
        /* 布局2: 大图卡片布局 */
        .layout-large-image .article-card {
            margin-bottom: 2rem;
            display: flex;
            flex-direction: column;
        }
        
        .layout-large-image .article-image {
            height: 300px;
            width: 100%;
        }
        
        .layout-large-image .card-body {
            padding: 1.5rem;
        }
        
        .layout-large-image .article-title {
            font-size: 1.5rem;
        }
        
        /* 布局3: 图文并排布局 */
        .layout-side-by-side .article-card {
            margin-bottom: 1.5rem;
            display: flex;
            height: 250px;
        }
        
        .layout-side-by-side .article-image {
            width: 40%;
            height: 100%;
        }
        
        .layout-side-by-side .card-body {
            width: 60%;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .layout-side-by-side .article-actions {
            margin-top: auto;
        }
        
        /* 布局4: 网格布局 */
        .layout-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .layout-grid .article-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .layout-grid .article-image {
            height: 180px;
        }
        
        .layout-grid .card-body {
            padding: 1.25rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .layout-grid .article-actions {
            margin-top: auto;
        }
        
        /* 布局5: 紧凑列表布局 */
        .layout-compact .article-card {
            display: flex;
            margin-bottom: 1rem;
            padding: 1rem;
            align-items: center;
        }
        
        .layout-compact .article-image {
            width: 100px;
            height: 100px;
            flex-shrink: 0;
        }
        
        .layout-compact .card-body {
            padding: 0 1rem;
            flex: 1;
        }
        
        .layout-compact .article-title {
            margin-bottom: 0.25rem;
            font-size: 1.1rem;
        }
        
        .layout-compact .article-excerpt {
            display: none;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .layout-side-by-side .article-card {
                flex-direction: column;
                height: auto;
            }
            
            .layout-side-by-side .article-image,
            .layout-side-by-side .card-body {
                width: 100%;
            }
            
            .layout-side-by-side .article-image {
                height: 200px;
            }
        }
        
        @media (max-width: 768px) {
            .layout-large-image .article-image {
                height: 220px;
            }
            
            .layout-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .layout-compact .article-image {
                width: 80px;
                height: 80px;
            }
            
            .article-actions {
                gap: 1rem;
            }
            
            .action-item span {
                display: none;
            }
        }
        
        @media (max-width: 576px) {
            .layout-grid {
                grid-template-columns: 1fr;
            }
            
            .layout-large-image .article-title {
                font-size: 1.25rem;
            }
            
            .section-heading {
                font-size: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <!-- 页面标题 -->
        <div class="text-center mb-5">
            <h1 class="display-5 mb-3">发现感兴趣的文章</h1>
            <p class="text-muted">探索多种风格的优质内容，找到属于你的阅读乐趣</p>
        </div>
        
        <!-- 布局1: 标准卡片布局 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-th-large"></i> 精选推荐
            </h2>
            <p class="section-description">我们精心挑选的优质内容，总有一篇适合你</p>
            
            <div class="layout-standard">
                <!-- 文章1 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/1200/400?random=1" alt="城市天际线日落美景">
                    </div>
                    <div class="card-body">
                        <div class="author-info mb-3">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/40/40?random=101" alt="作者头像">
                            </div>
                            <div>
                                <a href="#" class="author-name">城市探索者</a>
                                <div class="article-meta">
                                    <span>2小时前</span>
                                    <span>·</span>
                                    <span class="article-category">旅行</span>
                                </div>
                            </div>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">全球十大最美天际线，每一处都令人惊叹</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            城市天际线是一座城市的名片，融合了建筑美学与人文精神。本文带您领略全球十大最美天际线，从纽约曼哈顿到香港维多利亚港，每一处都展现了人类文明与自然景观的完美融合。
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>3.2k 阅读</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>48 评论</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-share-square"></i>
                                <span>23 分享</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章2 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/1200/400?random=2" alt="健康有机食品展示">
                    </div>
                    <div class="card-body">
                        <div class="author-info mb-3">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/40/40?random=102" alt="作者头像">
                            </div>
                            <div>
                                <a href="#" class="author-name">健康生活家</a>
                                <div class="article-meta">
                                    <span>昨天</span>
                                    <span>·</span>
                                    <span class="article-category">健康</span>
                                </div>
                            </div>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">五种简单方法，轻松改善你的饮食习惯</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            良好的饮食习惯是健康生活的基础，但很多人不知道从何开始改变。本文分享五种简单易行的方法，帮助你逐步改善饮食习惯，不需要剧烈的改变，就能感受到身体的积极变化。
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>5.7k 阅读</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>103 评论</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-share-square"></i>
                                <span>89 分享</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>已赞</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局2: 大图卡片布局 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-image"></i> 视觉盛宴
            </h2>
            <p class="section-description">精美的图片搭配优质内容，带来绝佳阅读体验</p>
            
            <div class="layout-large-image">
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/1200/500?random=10" alt="壮观的自然风景，山脉和湖泊">
                    </div>
                    <div class="card-body">
                        <div class="author-info mb-3">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/40/40?random=110" alt="作者头像">
                            </div>
                            <div>
                                <a href="#" class="author-name">自然摄影师</a>
                                <div class="article-meta">
                                    <span>3天前</span>
                                    <span>·</span>
                                    <span class="article-category">摄影</span>
                                </div>
                            </div>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">追逐光影：一位自然摄影师的十年心路历程</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            十年间，我走过全球27个国家，攀登过雪山，穿越过雨林，只为捕捉那一瞬间的光影奇迹。这组照片不仅记录了大自然的壮美与神奇，也见证了我个人的成长与蜕变。每一张照片背后，都有一个值得分享的故事。
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>8.9k 阅读</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>156 评论</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-share-square"></i>
                                <span>215 分享</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>已赞</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局3: 图文并排布局 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-columns"></i> 深度阅读
            </h2>
            <p class="section-description">内容丰富的深度文章，适合沉浸式阅读</p>
            
            <div class="layout-side-by-side">
                <!-- 文章1 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/600?random=20" alt="古籍与现代书籍对比">
                    </div>
                    <div class="card-body">
                        <div class="author-info mb-3">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/40/40?random=120" alt="作者头像">
                            </div>
                            <div>
                                <a href="#" class="author-name">文化研究者</a>
                                <div class="article-meta">
                                    <span>1周前</span>
                                    <span>·</span>
                                    <span class="article-category">文化</span>
                                </div>
                            </div>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">数字时代的阅读变革：从纸质书到电子书的进化史</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            从甲骨文到竹简，从纸质书到电子书，人类的阅读载体经历了数千年的演变。本文深入探讨数字时代阅读方式的变革，分析这种变革对人类认知、学习方式和知识传播带来的深远影响。我们是否正在失去深度阅读的能力？电子书真的会取代纸质书吗？
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>4.2k 阅读</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>93 评论</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-share-square"></i>
                                <span>56 分享</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章2 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/600?random=21" alt="远程工作场景">
                    </div>
                    <div class="card-body">
                        <div class="author-info mb-3">
                            <div class="author-avatar">
                                <img src="https://picsum.photos/40/40?random=121" alt="作者头像">
                            </div>
                            <div>
                                <a href="#" class="author-name">职场顾问</a>
                                <div class="article-meta">
                                    <span>5天前</span>
                                    <span>·</span>
                                    <span class="article-category">职场</span>
                                </div>
                            </div>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">远程工作革命：如何在虚拟环境中保持高效与协作</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            疫情加速了远程工作的普及，也彻底改变了传统的工作模式。然而，远程工作并非简单地将办公室搬到家里。本文分享远程工作的最佳实践，包括时间管理技巧、团队协作工具、沟通策略以及如何建立健康的工作与生活边界。
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>6.7k 阅读</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>132 评论</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-share-square"></i>
                                <span>98 分享</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>已赞</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局4: 网格布局 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-th"></i> 热门话题
            </h2>
            <p class="section-description">当下最受关注的话题，看看大家都在讨论什么</p>
            
            <div class="layout-grid">
                <!-- 文章1 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/400?random=30" alt="手工咖啡制作过程">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-2">
                            <span class="article-category">美食</span>
                            <span>· 2天前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">精品咖啡入门：如何在家冲泡一杯专业级咖啡</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            不需要昂贵的设备，在家也能冲泡出媲美咖啡店的精品咖啡。本文分享几种简单易行的咖啡冲泡方法...
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>2.1k</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>34</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章2 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/400?random=31" alt="极简主义家居">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-2">
                            <span class="article-category">生活</span>
                            <span>· 4天前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">极简主义不是减法，而是找到生活的本质</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            极简主义并非简单地扔掉东西，而是一种更有意识的生活方式。本文探讨如何在不牺牲生活质量的前提下...
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>3.5k</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>78</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章3 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/400?random=32" alt="户外露营场景">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-2">
                            <span class="article-category">户外</span>
                            <span>· 1周前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">新手露营完全指南：装备清单与安全须知</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            想尝试露营却不知道从何开始？这份详尽指南涵盖了从装备选择到营地搭建，从食物准备到安全防护的所有要点...
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>2.8k</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>56</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章4 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/600/400?random=33" alt="智能手机摄影作品">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-2">
                            <span class="article-category">技巧</span>
                            <span>· 3天前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">手机摄影进阶：专业摄影师的10个秘密技巧</a>
                        </h3>
                        
                        <p class="article-excerpt">
                            你不需要专业相机也能拍出惊艳的照片。本文分享专业摄影师如何用手机创作出媲美单反的摄影作品...
                        </p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>4.7k</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>92</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局5: 紧凑列表布局 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-list"></i> 最新更新
            </h2>
            <p class="section-description">刚刚发布的新鲜内容，第一时间为你呈现</p>
            
            <div class="layout-compact">
                <!-- 文章1 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/200/200?random=40" alt="城市夜景">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-1">
                            <span class="article-category">旅行</span>
                            <span>· 30分钟前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">世界十大夜景观赏地，你去过几个？</a>
                        </h3>
                        
                        <p class="article-excerpt">夜景观赏指南...</p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>428</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>12</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章2 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/200/200?random=41" alt="家庭烘焙">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-1">
                            <span class="article-category">美食</span>
                            <span>· 2小时前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">无需烤箱！5种简单美味的无烘焙甜点</a>
                        </h3>
                        
                        <p class="article-excerpt">夏日甜点制作...</p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>876</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>23</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章3 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/200/200?random=42" alt="室内植物">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-1">
                            <span class="article-category">生活</span>
                            <span>· 5小时前</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">适合新手的7种耐阴室内植物，轻松打造绿意空间</a>
                        </h3>
                        
                        <p class="article-excerpt">室内植物养护...</p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>654</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>18</span>
                            </div>
                            <div class="action-item like-btn liked">
                                <i class="fas fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 文章4 -->
                <div class="article-card">
                    <div class="article-image">
                        <img src="https://picsum.photos/200/200?random=43" alt="冥想练习">
                    </div>
                    <div class="card-body">
                        <div class="article-meta mb-1">
                            <span class="article-category">健康</span>
                            <span>· 昨天</span>
                        </div>
                        
                        <h3 class="article-title">
                            <a href="#">每天10分钟冥想，缓解压力改善睡眠的科学方法</a>
                        </h3>
                        
                        <p class="article-excerpt">冥想入门指南...</p>
                        
                        <div class="article-actions">
                            <div class="action-item">
                                <i class="far fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="action-item">
                                <i class="far fa-comment"></i>
                                <span>37</span>
                            </div>
                            <div class="action-item like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    if (this.classList.contains('liked')) {
                        this.innerHTML = this.innerHTML.replace('far fa-heart', 'fas fa-heart');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '已赞';
                        }
                    } else {
                        this.innerHTML = this.innerHTML.replace('fas fa-heart', 'far fa-heart');
                        if (this.querySelector('span')) {
                            this.querySelector('span').textContent = '点赞';
                        }
                    }
                });
            });
            
            // 评论和分享功能
            const interactiveItems = document.querySelectorAll('.action-item:not(.like-btn)');
            interactiveItems.forEach(item => {
                if (item.querySelector('.far.fa-comment') || item.querySelector('.far.fa-share-square')) {
                    item.addEventListener('click', function() {
                        // 在实际应用中，这里会打开评论框或分享选项
                        const actionType = this.querySelector('.far.fa-comment') ? '评论' : '分享';
                        alert(`打开${actionType}功能`);
                    });
                }
            });
        });
    </script>
</body>
</html>
    
